﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace NORM.Test
{
    public partial class 创建数据库 : Form
    {
        public 创建数据库()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            using (NORM.DataBase.DataBase db = NORM.DataBase.DataBaseFactory.Create("Server=192.168.0.116;Initial Catalog=CMSGroupSet;User ID=sa;Pwd=YHPych920,.;", DataBase.DataBaseTypes.SqlDataBase))
            {
                string message=string.Empty;
                try
                {
                    db.CreateDataBase("db_test257", "D:\\test\\", 100, -1, 10, "%", "192.168.0.156", "1433", "sa", "123456", out message);
                    MessageBox.Show(message);
                }
                catch (Exception ex)
                {

                }                
            }

        }
    }
}
